package com.woniuxy.crm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 郑鹏
 */
@Getter
@Setter
@TableName("crm_order")
@Schema(description = "Order对象")
public class Order extends BaseEntity{

    private static final long serialVersionUID = 1L;

    @Schema(description = "订单编号")
    private String no;

    @Schema(description = "客户id")
    private Integer customerId;

    @Schema(description = "创建时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT )
    @JsonIgnore
    private LocalDateTime addTime;

    @Schema(description = "订单金额")
    private BigDecimal money;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "销售经理id")
    private Integer managerId;

    @Schema(description = "备注")
    private String remark;




}